<template>
    <view class="container">
        <view class="header">
            <text class="title">标题</text>
        </view>
        <view class="box">
            <ant-textarea placeholder="简介" autoHeight onChange="onChange" class="textarea" />
        </view>
        <view class="box">
            <ant-textarea placeholder="正文" autoHeight onChange="onChange" class="textarea" />
        </view>
        <view class="footer">
            <view class="footer-item">
                <image class="icon" src="https://pic.imgdb.cn/item/6695dcedd9c307b7e95692d1.png" />
                <text class="footer-text">所在位置</text>
            </view>
            <view class="footer-item">
                <image class="icon" src="https://pic.imgdb.cn/item/66b04ec8d9c307b7e9f55e25.png" />
                <text class="footer-text">添加图片、视频</text>
            </view>
            <view class="footer-item">
                <image class="icon" src="https://pic.imgdb.cn/item/66b04efad9c307b7e9f58143.png" />
                <text class="footer-text">推荐项目</text>
            </view>
        </view>
        <ant-button type="primary" onTap="handleTap">新建</ant-button>
    </view>
</template>

<script>
	import {
		ref,
		onMounted
	} from 'vue';
	import {
		onShow,
		onLoad
	} from '@dcloudio/uni-app';
	import {
		onPullDownRefresh,
		onReachBottom
	} from "@dcloudio/uni-app";

export default {
    components: {
        
    },
    data() {
        return {};
    },
    methods: {
        onChange(value, e) {
            console.log(value, e);
        },

        handleTap(e) {
            uni.alert({
                title: '新建成功'
            });
        }
    }
};
</script>
<style>
.container {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background-color: #ffffff;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.title {
    font-size: 24px;
    font-weight: bold;
}

.summary {
    font-size: 18px;
    color: #666666;
    margin-bottom: 10px;
}

.main-text {
    font-size: 16px;
    color: #333333;
}

.footer {
    display: block;
    justify-content: space-around;
    border-top: 1px solid #eeeeee;
    padding-top: 10px;
    margin-left: 20px;
}

.footer-item {
    display: flex;
    align-items: center;
}

.icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.footer-text {
    font-size: 16px;
    color: #666666;
}
#textarea {
    min-height: 400px;
}
.box {
    width: 100%;
    height: 200px;
}
.button {
    margin-bottom: 8px;
}

</style>
